package com.mty.springboot.service;
import com.mty.springboot.model.Loss;
import com.mty.springboot.model.PageInfo;
import java.util.*;
/**
 * 用户Service层接口
 * @author: mty
 */
public interface LossService {

    //分页查询
    public PageInfo<Loss> findPageInfo(Integer pageIndex, Integer pageSize,Map mp);

    //添加
    public int addLoss(Loss loss);

    //删除
    public int deleteLoss(String id);

    //修改
    public int updateLoss(Loss loss);

    //根据ID查询
    public Loss findLossById(String id);

    //查询所有
    public List<Loss> getAll();

    //按照条件查询
    public List<Loss> queryFilter(Map mp);
}
